﻿
<h1>微信授权登录测试</h1>
<div class="container">
    <a class="btn btn-default" href="@ViewBag.url">
        确定登录
    </a>
</div>

https://open.weixin.qq.com/connect/oauth2/authorize?
appid=wx145b4a8fd07b24e8
&redirect_uri=http%3a%2f%2fwx.jnqianle.com%2fuser%2fOAuthHandle
&response_type=code
&scope=snsapi_userinfo
&state=STATE
&connect_redirect=1#wechat_redirect
<br />{"access_token":"ceS_UkYO_KY_JcpqqtG1LT9DtdBwyKRbUuN6GEz0FyPjZbepBoz-w17yIcL3D2lkAY2NMT21dK8Ojl_2ALT2LhNm7Q67m2ZTboU_Byrs2zA","expires_in":7200,"
refresh_token":"SvoM3lKCM-7a0WQ5T6XXv87-V690iaMkaIIUfjiElSf_QJIq6HHcpHZdGAgQA8fpwoR5dKfoQf-1ZpmJHXJiqbuSrWYRuTRSUArcOCleegU",
"openid":"oXCEct3-bDmFhpH1A48wUUAItH74","scope":"snsapi_userinfo","unionid":null}
<br />
{"openid":"oXCEct3-bDmFhpH1A48wUUAItH74","nickname":"一万次悲伤","sex":1,"province":"山东","city":"济南","country":"中国","headimgurl":"http://wx.qlogo.cn/mmopen/CnlQsDpRvn1sDFbkYlBlFxVX40ZKdib3wnJTGDSMYZE4LzJEsJSwnuxAErvDEj4GkViaCMtWLqhuJ1ZruxCHptA9tHb9WwDtAg/0","privilege":[],"unionid":null}